var nodemailer  = require('nodemailer');

var my_sender = '740470290@qq.com',
my_pass = 'jqextwpwokxdbbjg',
my_user = '740470290@qq.com'

var mailTransport = nodemailer.createTransport({
  host : 'smtp.qq.com',
  auth : {
      user : my_sender,
      pass : my_pass
  }
});

var options = {
  from: '"haha" '+my_sender,
  to: '"FK" '+my_user,
  subject: '菜鸟教程发送邮件测试',
  text: '邮箱内容'

}
mailTransport.sendMail(options, function(err, msg){
  console.log(msg)
})